<template>
  <div class="page-full">
    <common-header :tittle="title"></common-header>
    <div class="page-content page-bottom">
    </div>
  </div>
</template>

<script>
import commonHeader from 'common/common-header'
import * as productApi from 'api/product-api'
import { ERR_SUCCESS } from 'config/index'
export default {
  name: 'productDetail',
  data() {
    return {
      title: '商品详情',
      productId: 0
    }
  },
  components: {
    commonHeader
  },
  mounted() {
    this.productId = this.$route.query.product_id
    this.getProductDetail()
  },
  methods: {
    getProductDetail() {
      let params = {
        product_id: this.productId
      }
      productApi.detailapi(params).then((res) => {
        let {data} = res
        if (data.errno === ERR_SUCCESS) {

        } else {

        }
      }).catch(() => {

      })
    }
  }
}
</script>

<style lang="less" scoped>

</style>
